package cn.itcast.json;

import javax.json.bind.annotation.JsonbProperty;

public class StudentDTO {
    private int id;
    // 学号
    @JsonbProperty("学号")
    private String stuNo;
    // 姓名
    @JsonbProperty("姓名")
    private String stuName;
    // 年龄
    @JsonbProperty("年龄")
    private int age;
    // 学校
    @JsonbProperty("学校")
    private String school;
    // 邮件
    @JsonbProperty(value = "邮件", nillable = true)
    private String email;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getStuNo() {
        return stuNo;
    }

    public void setStuNo(String stuNo) {
        this.stuNo = stuNo;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public StudentDTO() {
    }

    public StudentDTO(int id, String stuNo, String stuName, int age, String school, String email) {
        this.id = id;
        this.stuNo = stuNo;
        this.stuName = stuName;
        this.age = age;
        this.school = school;
        this.email = email;
    }
}
